<?php /*a:2:{s:65:"/Applications/MAMP/htdocs/application/index/view/video/index.html";i:1591451973;s:58:"/Applications/MAMP/htdocs/application/index/view/base.html";i:1591464705;}*/ ?>
<!doctype html>
<html lang="zn-en">
<head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="/../static/index/lib/css/bootstrap.css"  crossorigin="anonymous">
    <link rel="stylesheet" href="/../static/index/css/index.css">
    <link href="/../static/layui/css/layui.css" rel="stylesheet">
    <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"  crossorigin="anonymous"></script>
    <script src="/../static/index/lib/js/bootstrap.bundle.js" crossorigin="anonymous"></script>
    <script src="/../static/index/lib/js/bootstrap.js"  crossorigin="anonymous"></script>
    <script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
    <script type="text/javascript" src="/../static/layui/layui.all.js"></script>
    <title>首页</title>
</head>
<body>
<header class="header">
    <div class="logo">
        <div class="btitle d-inline-block p-1 pb-1">
            <img src="/../static/index/images/logo.png" alt="">
        </div>
        <div class="login">
            <i class="iconfont">&#xe7a5;</i>
            <?php if(empty(session('user_id'))): ?>
            <a href="<?php echo url('index/login/login'); ?>">登录</a>/<a href="<?php echo url('index/login/reg'); ?>">注册</a>
            <?php else: ?>
            <a href="<?php echo url('index/center/index'); ?>">个人中心</a>/ <a id="layout">退出</a>
            <?php endif; ?>

        </div>
    </div>

</header>
<nav>
    <ul>
        <li >
            <a class="" href="<?php echo url('index/index/index'); ?>">首页</a>
        </li>
        <li >
            <a class="" href="<?php echo url('index/article/index'); ?>">动态咨询</a>
        </li>
        <li >
            <a class="" href="<?php echo url('index/project/index'); ?>">视频课程</a>
        </li>
        <li >
            <a class="" href="<?php echo url('index/live/index'); ?>">在线直播</a>
        </li>
        <li>
            <a class="" href="<?php echo url('index/book/index'); ?>">图书商城</a>
        </li>
        <li>
            <a class="" href="<?php echo url('index/othvideo/index'); ?>">短视频专区</a>
        </li>
    </ul>
</nav>
<div class="main-content">

<link href="https://vjs.zencdn.net/7.8.2/video-js.css" rel="stylesheet" />
<script src="https://vjs.zencdn.net/7.8.2/video.js"></script>
<div class="video-main">
    <?php if($play!=""): ?>
    <video
            id="my-video"
            class="video-js vjs-big-play-centered"
            controls
            preload="auto"
            width="1200"
            height="460"
            poster="<?php echo htmlentities($project['pro_thumb']); ?>"
            data-setup="{}"
    >
        <source src="<?php echo htmlentities($play['video_url']); ?>" />
    </video>
    <div class="video-cont">
        <div class="video-tit">
            <h4><strong><?php echo htmlentities($play['video_name']); ?></strong></h4>
            <span><i class="iconfont">&#xe608;</i><?php echo htmlentities($project['pro_name']); ?></span>
        </div>
        <div class="video-list">
            <ul class="nav nav-tabs" id="myTab" role="tablist">
                <li class="nav-item" role="presentation">
                    <a class="nav-link active" id="home-tab" data-toggle="tab" href="#home" >简介</a>
                </li>
                <li class="nav-item" role="presentation">
                    <a class="nav-link" id="profile-tab" data-toggle="tab" href="#profile" >目录</a>
                </li>
            </ul>
            <div class="tab-content" id="myTabContent">
                <div class="tab-pane fade show active" id="home" >
                    <?php echo htmlspecialchars_decode($project['pro_content']); ?>
                </div>
                <div class="tab-pane fade" id="profile" >
                    <ul>
                        <?php foreach($videoList as $v): ?>
                        <li><i class="iconfont">&#xe637;</i><a href=""><?php echo htmlentities($v['video_name']); ?></a> <span class="video-time"><?php echo date('Y_m-d',$project['pro_creat_time']); ?></span></li>
                        <?php endforeach; ?>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <?php else: ?>
        <div class="no-video">
            <h4>暂无视频课程....</h4>
        </div>
    <?php endif; ?>
</div>


</div>
<footer>
    <div class="copyright">
        Copyright © 2010-2020 MHK国语在线推广学习平台 All Rights Reserved<br>
        陕ICP备19016245号-1
    </div>
</footer>


<script>
    layui.use('layer', function(){
        var layer = layui.layer;
    });
    $('#layout').click(function () {
            $.post("<?php echo url('index/login/layout'); ?>","",function (res) {
                if(res.code){
                    layer.msg("退出成功",{icon:1});
                    setTimeout(function () {
                        window.location.href="<?php echo url('index/index/index'); ?>"
                    },500)
                }else {
                    layer.msg(res.msg,{icon:2});
                }
            })
    })
</script>
</body>
</html>